package com.example.mallauthserver.fefin;

import com.example.mallauthserver.VO.LoginVo;
import com.example.mallauthserver.VO.SocialUser;
import com.example.mallauthserver.VO.UserRegisterVo;
import com.msb.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Auther: xixifeng
 * @Date: 2022/11/5 - 11 - 05 - 20:52
 * @Description: com.example.mallauthserver.fefin
 * @version: 1.0
 */

/**
 * 会员服务
 */
@FeignClient("mall-member")
public interface MembeFeginService {
    @PostMapping("/member/member/register")
    public R register(@RequestBody UserRegisterVo vo);


    @PostMapping("/member/member/login")
    public R login(@RequestBody LoginVo VO);

    /**
     * 社交登入
     * @param socialUser
     * @return
     */
    @PostMapping("/member/member/auth2/login")
    public R socialLogin(@RequestBody SocialUser socialUser);
}
